﻿/*----------------------------------------------------------------
  //Copyright (C) 2012 赵国伟
  //文件功能描述：系统后台主模板页
  //创建人：赵国伟
  //生成时间：2012/03/17 16:15:00
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Shopping.Common;
using Shopping.Model;
using Shopping.BLL;

public partial class Manage_MainPage : System.Web.UI.MasterPage
{

    protected Dictionary<int, string> dictGroups;
    protected Dictionary<int, string> dictGroupUrls;
    protected List<PurviewResources> listOfCurRes;
    protected int curGroupID;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            EmployeesManage bllEmployee = new EmployeesManage();
            PurviewResourceManage bllRes = new PurviewResourceManage();
            int employeeID = bllEmployee.GetEmployeeIDFromCookies();
            string url = Request.Url.AbsolutePath;
            url = url.Substring(1, url.Length - 1);  //格式化当前的地址Url
            bllRes.GetEmployeeMenus(employeeID, url, out dictGroups, out dictGroupUrls, out listOfCurRes, out curGroupID);

        }
    }
}
